package com.briup.cms.exception;

import com.briup.cms.util.ResultCode;

/**
 * 自定义异常类
 */
public class CustomException extends RuntimeException{
    //发生异常具体信息 通过枚举对象表示
    private ResultCode resultCode;

    public CustomException(ResultCode rc) {
        super(rc.getMessage());
        this.resultCode = rc;
    }

    public ResultCode getResultCode() {
        return resultCode;
    }

    public void setResultCode(ResultCode resultCode) {
        this.resultCode = resultCode;
    }
}
